Skip to content

Conversation

stevensJourney
Copy link
Collaborator

@stevensJourney stevensJourney commented Oct 3, 2025

Overview

We currently download the relevant binary for the PowerSync rust core as an install script of @powersync/node. Some environments, such as PNPM require explicitly approving install scripts, which can result in cases where the extension is not automatically downloaded.

This bundles the PowerSync extension for all architectures in the published NPM package - avoiding the need for install scripts.

The extension is also downloaded in local scripts to ease local development.

Testing

✅ Verified that the binaries are present in a development package

Tested by installing @powersync/node in a test NPM project. Verified that the client was created and could execute SQL. Tested with both Better-SQLite and Node SQLite.

✅ Tested on MacOS ARM
✅ Tested on Linux x86_64 (Docker)
✅ Tested on Linux arm64 (Docker)
✅ Tested on Windows
✅ Verified the example-electron-node demo works correctly in development and after building a MacOS .app.
✅ Verified example-node works on MacOS

Copy link

changeset-bot bot commented Oct 3, 2025

🦋 Changeset detected

Latest commit: 2fa725b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@powersync/node Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@stevensJourney stevensJourney marked this pull request as ready for review October 20, 2025 16:05
Copy link
Contributor

@simolus3 simolus3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a nice improvement over the old install scripts, I really like seeing that setup code be removed in the examples 👍

Copy link
Contributor

@simolus3 simolus3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 🚀

@stevensJourney stevensJourney merged commit aa90aa0 into main Oct 21, 2025
9 of 10 checks passed
@stevensJourney stevensJourney deleted the node-download-extension branch October 21, 2025 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants